package com.aaa.service;

import com.aaa.dao.MenuDao;
import com.aaa.pojo.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuService {

    @Autowired
    private MenuDao menuDao;

    public List<Menu> queryMenuAll(Integer rid){
        return menuDao.queryMenuAll(rid);
    }

    public Menu queryMenuByName(String auth){
        return menuDao.queryMenuByName(auth);
    }
}
